﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    EnableEventValidation="false" CodeBehind="View.aspx.cs" Inherits="Wicresoft.RDW.LabManage.View" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerBasicControl"
    TagPrefix="uc" %>
<%@ Register Src="../UserControls/LocationLabControl.ascx" TagName="LocationLabControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .divForm
        {
            width: 400px;
            margin: 0 auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.NameResource.Lab_Manage%></h2>
    </div>
    <div class="line_gray">
    </div>
    <br />
    <asp:PlaceHolder ID="phOpen" runat="server" Visible="true">
        <div>
            <div>
                <uc1:LocationLabControl ID="ucLocationLab" EnableValidation="false" Vertical="true"
                    runat="server" />
                <asp:Button ID="btnQuery" runat="server" CausesValidation="False" OnClick="btnQuery_Click" />
            </div>
            <div align="right">
                <asp:Button ID="btnCloseLab" runat="server" CausesValidation="False" OnClick="btnCloseLab_Click" />
            </div>
            <div class="HistoryApplicationContent">
                <asp:GridView ID="LabCloseScheduleGW" runat="server" AutoGenerateColumns="false"
                    Width="100%" DataKeyNames="ScheduleId" OnRowDataBound="LabCloseScheduleGW_RowDataBound"
                    OnRowUpdating="LabCloseScheduleGW_RowUpdating" OnRowDeleting="LabCloseScheduleGW_RowDeleting"
                    HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
                    AlternatingRowStyle-CssClass="dcTableItem">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="5%">
                            <ItemTemplate>
                                <asp:Label ID="lblNum" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:Label ID="lblLocationName" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:Label ID="lblLabName" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="StartDate" DataFormatString="[{0:yyyy-MM-dd}]" ItemStyle-Width="10%" />
                        <asp:BoundField DataField="EndDate" DataFormatString="[{0:yyyy-MM-dd}]" ItemStyle-Width="10%" />
                        <asp:TemplateField ItemStyle-Width="45%">
                            <ItemTemplate>
                                <asp:Label ID="lblReason" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-Width="10%">
                            <ItemTemplate>
                                <asp:LinkButton class="CommandButton" ID="lbtnUpdate" runat="server" CausesValidation="False"
                                    CommandName="Update" Text="Update"></asp:LinkButton>
                                <asp:LinkButton class="CommandButton" ID="lbtnDelete" runat="server" CausesValidation="False"
                                    CommandName="Delete"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        <table width="100%">
                            <tr class="dcTableHeader">
                                <th width="5%">
                                    <%=Resources.NameResource.No%>
                                </th>
                                <th width="10%">
                                    <%=Resources.ManageResource.mgr_lblLocationName%>
                                </th>
                                <th width="10%">
                                    <%=Resources.ManageResource.mgr_lblLabName%>
                                </th>
                                <th width="10%">
                                    <%=Resources.ManageResource.mgr_lblStartTime%>
                                </th>
                                <th width="10%">
                                    <%=Resources.ManageResource.mgr_lblEndTime%>
                                </th>
                                <th width="45%">
                                    <%=Resources.ManageResource.mgr_lblCloseReason%>
                                </th>
                                <th width="10%">
                                    <%=Resources.ManageResource.mgr_lblAction%>
                                </th>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                <uc:PagerBasicControl ID="pager" runat="server" PageSize="10" />
            </div>
        </div>
    </asp:PlaceHolder>
</asp:Content>
